package keqiang.com.kq_flutter_core_widget.util;

import androidx.annotation.IntDef;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Retention(RetentionPolicy.SOURCE)
@Target({ElementType.PARAMETER, ElementType.METHOD})
@IntDef({ErrCode.SUCCESS, ErrCode.FAILED, ErrCode.CANCEL, ErrCode.APP_NOT_INSTALL})
public @interface ErrCode {
    /**
     * 授权登录/分享成功
     */
    int SUCCESS = 0;
    /**
     * 授权登录/分享失败
     */
    int FAILED = -1;
    /**
     * 用户取消授权登录/分享
     */
    int CANCEL = -2;
    /**
     * app未安装
     */
    int APP_NOT_INSTALL = -3;
    
}
